package com.atty.dms.service;

import com.atty.dms.dao.entity.DormitoryDO;
import com.atty.dms.dto.req.DormitoryCreateReqDTO;
import com.atty.dms.dto.req.DormitoryUpdateReqDTO;
import com.atty.dms.dto.resp.DormitoryRespDTO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * ClassName:DormitoryService
 * Package:com.atty.dms.service
 * Description:
 *
 * @Author:tony
 * @Create :2025/4/15 9:34
 * @Version :1.0
 */

public interface DormitoryService extends IService<DormitoryDO> {

    /**
     * 根据宿舍id获取宿舍信息
     * @param dormitoryId
     * @return 宿舍信息
     */
    DormitoryRespDTO getDormitoryById(String dormitoryId);

    /**
     * 根据宿舍id获取宿舍信息
     * @param dormitoryNumber
     * @return 宿舍信息
     */
    DormitoryRespDTO getDormitoryByDormitoryNumber(String dormitoryNumber);

    /**
     * 创建宿舍
     * @param requestParam
     */
    void createDormitory(DormitoryCreateReqDTO requestParam);

    /**
     * 修改宿舍信息
     * @param requestParam
     */
    void updateDormitory(DormitoryUpdateReqDTO requestParam);

    /**
     *  根据宿舍id删除宿舍信息
     * @param dormitoryId
     */
    void deleteDormitoryById(String dormitoryId);

    /**
     * 分页获取所有宿舍信息
     * @param pageNum
     * @param sizeNum
     * @return
     */
    Page<DormitoryRespDTO> getAllDormitoriesByPage(int pageNum, int sizeNum);

}
